package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SchemeTemplateExample.E_COMPANY_ID;
import static org.jsola.hr.example.SchemeTemplateExample.E_MANTISSA_PROC_COMPANY;
import static org.jsola.hr.example.SchemeTemplateExample.E_MANTISSA_PROC_PERSONAL;
import static org.jsola.hr.example.SchemeTemplateExample.E_ONLY_SOC_AMOUNT;
import static org.jsola.hr.example.SchemeTemplateExample.E_TEMPLATE_NAME;
import static org.jsola.hr.example.SchemeTemplateExample.E_TEMPLATE_TYPE;
import static org.jsola.hr.example.SchemeTemplateExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SchemeTemplateExample.M_TEMPLATE_NAME_MAX;
import static org.jsola.hr.example.SchemeTemplateExample.M_TEMPLATE_NAME_NOT_NULL;
import static org.jsola.hr.example.SchemeTemplateExample.M_TEMPLATE_TYPE_NOT_NULL;
import static org.jsola.hr.example.SchemeTemplateExample.N_COMPANY_ID;
import static org.jsola.hr.example.SchemeTemplateExample.N_MANTISSA_PROC_COMPANY;
import static org.jsola.hr.example.SchemeTemplateExample.N_MANTISSA_PROC_PERSONAL;
import static org.jsola.hr.example.SchemeTemplateExample.N_ONLY_SOC_AMOUNT;
import static org.jsola.hr.example.SchemeTemplateExample.N_TEMPLATE_NAME;
import static org.jsola.hr.example.SchemeTemplateExample.N_TEMPLATE_TYPE;

/**
 * 参保方案模板表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【参保方案模板表】的参数")
@Data
public class SchemeTemplateAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_TEMPLATE_NAME, example = E_TEMPLATE_NAME, required = true)
    @NotNull(message = M_TEMPLATE_NAME_NOT_NULL)
    @Length(max = 50, message = M_TEMPLATE_NAME_MAX)
    private String templateName;

    @ApiModelProperty(notes = N_TEMPLATE_TYPE, example = E_TEMPLATE_TYPE, required = true)
    @NotNull(message = M_TEMPLATE_TYPE_NOT_NULL)
    private Integer templateType;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_ONLY_SOC_AMOUNT, example = E_ONLY_SOC_AMOUNT)
    private Boolean onlySocAmount;

    @ApiModelProperty(notes = N_MANTISSA_PROC_COMPANY, example = E_MANTISSA_PROC_COMPANY)
    private Integer mantissaProcCompany;

    @ApiModelProperty(notes = N_MANTISSA_PROC_PERSONAL, example = E_MANTISSA_PROC_PERSONAL)
    private Integer mantissaProcPersonal;


}

